
<?php
//require('phpQuery/phpQuery.php');

$url = $_REQUEST['videoUrl'];
$str = file_get_contents($url);

//13447
//13541
$first = strpos($str,"pageGlobal.streamId = '");
$second = strpos($str,"';
            pageGlobal.uid");

$str  = substr($str,$first,$second-$first);
$str  = substr($str,23);

echo $str ;exit;


//$str = phpQuery::newDocumentFile($_REQUEST['videoUrl']);
////$str = $str->document->textContent;
//
//
//$first = strpos($str,'"vid": "');
//
//
//$second = strpos($str,'",
//                "vquality": "3"');
//
//
//$str  = substr($str,strpos($str,'"vid": "'),$second-$first);
//
//
//$str  = substr($str,8);

